#include <iostream>
using namespace std;

#include "main.h"

int main(int argc, char **argv)
{
	int array1[] = {3, 2, 1, 2, 3, 4};
	int array2[] = {1, 3, 5, 1, 2, 3, 1, 4};
	int len1 = sizeof(array1) / sizeof(int);
	int len2 = sizeof(array2) / sizeof(int);
	
	Array a1(len1);
	Array a2(len2);
	memcpy(a1.array, array1, sizeof(array1));
	memcpy(a2.array, array2, sizeof(array2));
	
	Array resArray = findLongestSubsequence(a1, a2);
	
	cout << resArray.len << endl;
	
	a1.clean();
	a2.clean();
	
	cin.get();
	return 0;
}
